package settings;

import fileHandling.SettingsLoader;
import logic.nodes.nodeSettings.Settings;

public abstract class ConfigFile extends Settings {
	
	protected ConfigFile() {
		super();
	}
	
	protected abstract Settings getSettings();
	
	public abstract void reset();
	
	public void readSettings(String path) {
		Settings loadedSettings = SettingsLoader.loadSettings(path);	
		getSettings().copySettings(loadedSettings, true);
	}
	
	public abstract String getFileName();
}